<!DOCTYPE html>
<html>
  <head>
    <title>IOT LAO WANG</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
  </head>
  <body>
    <h1>Convert Celsius to Fahrenheit</h1>
    <p>Temperature:</p>
    <p id="temperature">25</p>
    <p><button onclick="convertToF()">Convert to Fahrenheit</button></p>
    <script>
      function convertToF() {
        var temperatureC = document.getElementById("temperature").innerText;
        console.log(temperatureC);
        var temperatureF = ((temperatureC)*9/5) + 32;
        document.getElementById("temperature").innerHTML = temperatureF;
      }
    </script>
  </body>
</html>